import sys,os

if len(sys.argv)<3:
    print 'Usage: python checkNoFile.py file.lst id.lst'
    exit(1)

allF=set()
fi=open(sys.argv[1],'r')
for line in fi:
    line=line.strip()
    if len(line)<1:
    	continue
    temp=line.split('\t')
    allF.add(temp[0])
fi.close()
fi=open(sys.argv[2],'r')
for line in fi:
    line=line.strip()
    if len(line)<1:
    	continue
    beg=line.find('u\'UCSC_name\': u\'')+16
    end=line.find('\'}}',beg)
    name=line[beg:end]
    print str(name not in allF)+'\t'+name
    #if name not in allF:
    #	print name
fi.close()
